package com.example.development.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.development.business.enums.DeleteFlagEnum;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @author: vince_zww
 * @date: 2020/8/24 18:16
 * @desceription:
 */
@Data
@Builder
@ToString
@TableName(value = "tab_mysql_row_lock")
public class MysqlRowLock {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String title;

    private String content;

    private Integer type;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 0：未删除，1：已删除
     */
    private Integer deleteFlag = DeleteFlagEnum.FALSE.getCode();


}
